--//Durotar - Kul Tiras Lua Script//Made by LASP - Yerney// Thank you for using our scripts.
--If you find / see any bugs, please report by contacting one of our scripters.
--                           luaprojectleader@hotmail.com

--Kult Tiras Marine
function KTM_OnCombat(pUnit, Event)
pUnit:RegisterEvent("KTM_Bash", 5000, 1)
end

function KTM_Bash(pUnit, Event)
pUnit:FullCastSpellOnTarget(11972, pUnit:GetClosestPlayer())
end

function KTM_LeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end

function KTM_Dead(pUnit, Event)
pUnit:RemoveEvents()
end

RegisterUnitEvent(3129, 1, "KTM_OnCombat")
RegisterUnitEvent(3129, 2, "KTM_LeaveCombat")
RegisterUnitEvent(3129, 4, "KTM_Dead")

--Kult Tiras Sailor
function KTS_OnCombat(pUnit, Event)
pUnit:RegisterEvent("KTS_Charge", 500, 1)
end

function KTS_Charge(pUnit, Event)
pUnit:CastSpell(6268)
end

function KTS_LeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end

function KTS_Dead(pUnit, Event)
pUnit:RemoveEvents()
end

RegisterUnitEvent(3128, 1, "KTS_OnCombat")
RegisterUnitEvent(3128, 2, "KTS_LeaveCombat")
RegisterUnitEvent(3128, 4, "KTS_Dead")


--Benedict
function Benedict_OnCombat(pUnit, Event)
pUnit:CastSpell(7164)
pUnit:RegisterEvent("Benedict_Buff", 10000, 1)
pUnit:RegisterEvent("Benedict_Bash", 14000, 2)
end

function Benedict_Buff(pUnit, Event)
pUnit:CastSpell(3248)
end

function Benedict_Bash(pUnit, Event)
pUnit:CastSpellOnTarget(72, pUnit:GetClosestPlayer())
end

function Benedict_LeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end

function Benedict_Dead(pUnit, Event)
pUnit:RemoveEvents()
end

RegisterUnitEvent(3192, 1, "Benedict_OnCombat")
RegisterUnitEvent(3192, 2, "Benedict_LeaveCombat")
RegisterUnitEvent(3192, 4, "Benedict_Dead")


